/* IT services.css - COMPLETE PROFESSIONAL STYLESHEET v2.5 */
/* 4 service tiles in one row + project gallery */

/* ========================================
   RESET & BASE
======================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   HERO SECTION
======================================= */
#hero {
    background: transparent !important;
    color: #1a1a1a;
    text-align: center;
    padding: 5rem 0;
}

#hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

#hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto;
    color: #555;
    line-height: 1.7;
}

/* ========================================
   CONTAINER & SECTIONS
======================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.section-subtitle {
    color: #666;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
}

/* ========================================
   SERVICES GRID - 3 TILES, SNAKE GAME FULL ROW BELOW
======================================= */
#services .services-grid, #games .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.6rem;
    width: 100%;
    margin-top: 0;
}

/* ========================================
   SERVICE CARDS
======================================= */
.service-card {
    background: rgba(241, 245, 249, 0.95);
    padding: 2.6rem 1.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    height: 100%;
    min-height: 360px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 35%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 85, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(0, 123, 255, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-large {
    font-size: 3.1rem;
    line-height: normal;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    width: 86px;
    height: 86px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    letter-spacing: normal;
    text-indent: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon-large {
    transform: scale(1.08) translateY(-5px);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Nudge the gamepad emoji up since Windows can draw it lower */
.service-card:nth-child(3) .service-icon-large {
    padding-bottom: 12px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 0.96rem;
    position: relative;
    z-index: 2;
}

.service-card p:last-child {
    margin-bottom: 0;
}

/* ========================================
   COMPACT SERVICE CARDS (top row)
======================================= */
.service-card.service-card-compact {
    min-height: auto;
    padding: 1.8rem 1.4rem;
    border-radius: 20px;
}

.service-card-compact .service-icon-large {
    width: 62px;
    height: 62px;
    font-size: 2.2rem;
    margin-bottom: 1.1rem;
}

.service-card.service-card-compact h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.service-card.service-card-compact p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-card-compact:nth-child(3) .service-icon-large {
    padding-bottom: 8px;
}

/* ========================================
   FREE GAME CARD
======================================= */
.free-game-card {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.98), rgba(239, 246, 255, 0.98));
}

.free-game-card .service-icon-large {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.free-game-card:hover .service-icon-large {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* Snake game spans the full row with its video beside the text */
.free-game-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    padding: 3rem;
}

.free-game-video-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    justify-self: center;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.free-game-video-wrap video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 688 / 720;
}

.video-sound-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0.5rem 0.95rem;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease;
}

.video-sound-btn:hover {
    background: rgba(37, 99, 235, 0.9);
}

.video-sound-btn[hidden] {
    display: none;
}

.free-game-feature h3 {
    font-size: 1.8rem;
    line-height: 1.25;
}

.free-game-feature p {
    font-size: 1.05rem;
}

.free-game-feature strong {
    color: #1e293b;
}

.free-game-feature .free-game-highlight {
    margin-top: 1.2rem;
    font-size: 1.12rem;
}

.free-game-feature .free-game-highlight strong {
    color: #2563eb;
}

.free-game-feature .game-download-btn {
    padding: 1rem 1.8rem;
    font-size: 1rem;
}

/* ========================================
   AI GAMES COMING SOON CARD
======================================= */
.coming-soon-card {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 3.2rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #4f46e5 100%);
    border: none;
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.25);
}

.coming-soon-card::before {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 40%);
}

.coming-soon-card .service-icon-large {
    margin-bottom: 1.5rem;
}

.coming-soon-card h3 {
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1.25;
}

.coming-soon-card p {
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.08rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-card .coming-soon-tagline {
    margin-top: 1rem;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.coming-soon-badge {
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    z-index: 2;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

/* ========================================
   DOWNLOAD BUTTON
======================================= */
.game-download-box {
    margin-top: 1.6rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.game-download-btn {
    display: inline-block;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.game-download-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

/* ========================================
   RELEASED APP SECTION
======================================= */
.released-section {
    padding-top: 0;
    padding-bottom: 0;
}

.released-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    padding: 2.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
    border: 1px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.released-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.released-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.released-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.released-content h3 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.released-content p {
    margin-bottom: 0.9rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
}

.released-content p a {
    color: #2563eb;
    font-weight: 700;
}

.released-content strong {
    color: #1e293b;
}

/* In-development project uses the same wide card as ARVIO */
.dev-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Same picture shape as the ARVIO card so both cards are the same height */
.dev-card .released-image-wrap img {
    aspect-ratio: 1420 / 738;
    object-fit: cover;
    object-position: top;
}

.released-card.dev-card {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.98) 0%, rgba(239, 246, 255, 0.98) 100%);
    border-color: rgba(226, 232, 240, 0.9);
}

.released-badge.dev-badge {
    background: #0f172a;
}

.free-highlight {
    color: #10b981;
}

.released-content .released-free-line {
    font-size: 1.2rem;
    color: #1e293b;
}

.released-content .released-free-line strong {
    color: #059669;
    font-weight: 800;
}

.released-btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #2563eb);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.released-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

/* ========================================
   PROJECT GALLERY SECTION
======================================= */
.project-gallery-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.project-gallery-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.45s ease;
    position: relative;
}

/* A lone project card sits centred instead of filling half the row */
.project-gallery-card:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 680px;
}

.project-gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.13);
    border-color: rgba(59, 130, 246, 0.18);
}

.project-gallery-image-wrap {
    width: 100%;
    height: 360px;
    overflow: hidden;
    background: #0f172a;
    position: relative;
}

.project-gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease, filter 0.7s ease;
}

.project-gallery-card:hover .project-gallery-image-wrap img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.project-gallery-content {
    padding: 2rem;
}

.project-gallery-content h3 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 0.9rem;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.project-testimonial-heading {
    margin: 1.25rem 0 0.4rem;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.project-testimonial {
    padding: 0.9rem 1rem;
    border-left: 3px solid #60a5fa;
    border-radius: 4px;
    background: #eaf4ff;
    color: #1e3a5f !important;
}

.project-gallery-content p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.project-gallery-card.project-in-development::after {
    content: "In Development";
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

/* ========================================
   ANIMATIONS
======================================= */
.service-card {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-gallery-card {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.project-gallery-card:nth-child(1) {
    animation-delay: 0.2s;
}

.project-gallery-card:nth-child(2) {
    animation-delay: 0.35s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================= */

/* Laptop / tablet */
@media (max-width: 1200px) {
    #services .services-grid, #games .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2rem;
    }

    .container {
        max-width: 1100px;
    }

    .service-card {
        padding: 3rem 2.2rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 1rem;
    }

    .project-gallery-image-wrap {
        height: 320px;
    }
}

/* Tablet and mobile */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .section,
    .project-gallery-section {
        padding: 4rem 0;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 3rem;
    }

    #services .services-grid, #games .services-grid,
    .project-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .service-card {
        padding: 2.5rem 1.8rem;
        min-height: auto;
    }

    .service-icon-large {
        width: 85px;
        height: 85px;
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .service-card h3 {
        font-size: 1.45rem;
    }

    .service-card p {
        font-size: 1rem;
    }

    .game-download-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.4rem;
    }

    .free-game-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .released-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .dev-section {
        padding-top: 4rem;
    }

    .released-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.6rem;
    }

    .released-content {
        text-align: center;
    }

    .released-content h3 {
        font-size: 1.5rem;
    }

    .free-game-video-wrap {
        max-width: 420px;
    }

    .project-gallery-image-wrap {
        height: 280px;
    }

    .project-gallery-content {
        padding: 1.6rem;
    }

    .project-gallery-content h3 {
        font-size: 1.35rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    #hero h1 {
        font-size: 2.4rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem 1.4rem;
        border-radius: 20px;
    }

    .service-icon-large {
        width: 78px;
        height: 78px;
        font-size: 2.7rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.98rem;
    }

    .game-download-btn {
        font-size: 0.9rem;
    }

    .project-gallery-card {
        border-radius: 22px;
    }

    .project-gallery-image-wrap {
        height: 220px;
    }

    .project-gallery-content {
        padding: 1.4rem;
    }

    .project-gallery-content h3 {
        font-size: 1.25rem;
    }

    .project-gallery-content p {
        font-size: 0.96rem;
    }

    .project-gallery-card::after {
        top: 0.9rem;
        left: 0.9rem;
        font-size: 0.68rem;
        padding: 0.38rem 0.7rem;
    }
}